<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>

<div class="middle">
    
    <div class="pad10">
        <p>
            <a href="<?php echo site_url('settings/view'); ?>">
                <b><?php echo $settings_lang['module_title']; ?></b>
            </a>
            -&gt;
            <?php echo $settings_lang['setting_template']; ?>
           
        </p>
        
        <div class="padtop10">
            
            <?php
            if($mess != '')
            {
            ?>
                <p class="pad10 text-center"><?php echo $mess; ?></p>
            <?php
            }
            ?>
        
            <form action="<?php echo site_url('settings/template'); ?>" method="post" name="frmTemplate" id="frmTemplate">
                <textarea name="content" id="content" style="width: 960px; height: 400px;"><?php echo $fileContent;?></textarea>
                
                <input type="button" class="bold" value="  Submit  " onclick="tmpSubmit();" />
                
                <input type="button" class="bold" value="  Reload  " onclick="tmpReload();" />
            </form>
        </div>
        
    </div>

</div>

<script type="text/javascript">
    function tmpSubmit()
    {
        if(confirm('Are you sure?'))
        {
            $('#frmTemplate').submit();
        }
    }
    
    function tmpReload()
    {
        window.location = '<?php echo site_url('settings/template'); ?>';
    }
</script>